<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:useBean id="reg" class="pojo.User"/>
<jsp:setProperty property="*" name="reg"/>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册成功</title>
<link rel="stylesheet" type="text/css" href="${ pageContext.request.contextPath }/resources/css/bootstrap.min.css">
</head>
<body>
<jsp:include page="head.jsp"></jsp:include>
<h4>注册成功，信息如下，5秒后跳转，没登录跳转到登录页面，登录了则跳转到主页...（或者您可以点击上面链接马上跳转）</h4>
<div  class="well-lg">
	用户名：<jsp:getProperty name="reg" property="uname"/><br>
	密码：<jsp:getProperty name="reg" property="upwd"/><br>
	email：<jsp:getProperty name="reg" property="uemail"/><br>
	联系电话：<jsp:getProperty name="reg" property="uphone"/><br>
	您的简历和交友标准：<br>
	<jsp:getProperty name="reg" property="umessage"/>
</div>
<% 
if(session.getAttribute("uname") != null){
	response.setHeader("refresh", "5;url=view/index.jsp");
}else{
	response.setHeader("refresh", "5;url=view/login.jsp");
}
%>
</body>
</html>